from PySide6.QtWidgets import QMainWindow,QLabel
from views.home.home import Ui_home
from views.setting.personbase.personBaseView import PersonBaseView
from views.schoolInfo.schoolListView import SchoolInfo
from views.person.personInfoView import PersonInfo
from views.publicfunds.publicfundslistView import PublicFundsList

class HomeView(QMainWindow,Ui_home):
    def __init__(self):
        super().__init__()
        self.setupUi(self)

        self.statusbar.addWidget(QLabel('    本程序由胡荣江独立开发，版权归胡荣江所有！'))
    # 基本信息设置
    def personbase(self):
        self.setCentralWidget(PersonBaseView())

    # 学校信息设置
    def schoolInfo(self):
        self.setCentralWidget(SchoolInfo())

    def personInfo(self):
        self.setCentralWidget(PersonInfo())

    def publicfundsfun(self):
        self.setCentralWidget(PublicFundsList())